import Vue from 'vue'
import VueRouter from 'vue-router'
import Sc from '@/views/Sc2'
Vue.use(VueRouter)

const routes = [
    //重定向
    {
      path:'/',
      redirect:'/Sc'
    },
    //购物车
    {
      path:'/sc',
      component:Sc
    }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
